home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / nonstop.zip / NONSTOP.TXT < prev   
Text File  |  1990-09-27  |  3KB  |  74 lines

  1. Copyright (C) 1990 by J. Scott Sanbar.  All rights reserved.
  2.  
  3.                        JAMES SCOTT SANBAR
  4.                        8100 Glenwood
  5.                        Oklahoma City, OK 73114
  6.  
  7.                        CIS: 73760,3304
  8.  
  9. .ZIP should contain NONSTOP.ASM and NONSTOP.PAS as well as NONSTOP.OBJ
  10. and NONSTOP.TPU.  NONSTOP.TPU was compiled with Turbo Pascal 5.5
  11. compiler.
  12.  
  13. To use, just include the identifier NONSTOP in the uses clause of your
  14. program, then call the procedure InstallNonStopISR:
  15.  
  16. program UnstoppableProgram;
  17.  
  18. uses NonStop;
  19.  
  20. begin
  21.  InstallNonStopISR;
  22.  repeat until false
  23. end.
  24.  
  25. This program will not be stoppable from the keyboard with clean DOS
  26. running in real mode.  Disables the CTRL-BREAK, CTRL-C and CTRL-ALT-DEL
  27. key combinations.  Reenables on normal TP program exit.  INT 9 can be
  28. returned using global variable OldIntr09 before non-standard exit.
  29.  
  30. Three global booleans are provided to toggle on and off the disabling of
  31. these key combinations (default TRUE):
  32.  
  33. NoBoot  := false; {Enables CTRL-ALT-DELETE key combination}
  34. NoBreak := false; {Enables CTRL-BREAK key combination}
  35. NoCtrlC := false; {Enables CTRL-C key combination}
  36.  
  37. Setting them back to true will disable the respective keys.  Any or all of
  38. the key combinations may be enabled or disabled as often as you wish from
  39. any part of the program.
  40.  
  41. If you are using Turbo Pascal 5.0, you will need to recompile the
  42. NONSTOP.PAS unit with your compiler.  All you need to do is make sure the
  43. NONSTOP.OBJ object module can be found by your compiler - it will
  44. automatically link it in if it can find it.  See your manuals for details.
  45.  
  46. If you wish to recompile everything for some reason, you will need a TASM
  47. or other MASM compatible assembler as well as Turbo Pascal 5.x.  Then,
  48. do the following:
  49.  
  50. TASM NONSTOP.ASM
  51. TPC NONSTOP.PAS
  52.  
  53. You can also compile from within the IDE, but it must know where to find
  54. the .OBJ file.  Look under the Directories option of the Options menu.
  55.  
  56. NONSTOP.ASM should work with any MASM compatible assembler, but has only
  57. been tested with TASM.
  58.  
  59. This unit has only been tested on an extended keyboard.  If the CTRL-BREAK
  60. is not disabled on a regular (PC type) keyboard, you will need to add
  61. keyboard detection code and make minor alterations in the NONSTOP.ASM
  62. and NONSTOP.PAS modules.  In any case, CTRL-ALT-DEL and CTRL-C should
  63. be disabled just fine and you can disable CTRL-BREAK via other methods.
  64.  
  65. This text as well as both modules are copyrighted and may not be sold for
  66. profit.  Feel free to link the NONSTOP.TPU module into any of your
  67. programs or distribute these files free of charge.
  68.  
  69. The code was based on various TSR's, TP code, book examples and alot just
  70. came out of my own head.
  71.  
  72. May not work with 80386 based multi-tasking operating environments, namely
  73. Windows 3.0 in 386 enhanced mode.  Works fine with Windows 3.0 in standard
  74. or real mode.